awilliam@xenbuild.aw [Fri, 24 Feb 2006 20:30:39 +0000 (13:30 -0700)]
[IA64] Clean up warnings related to VTi code. (header files)
This patch adds some functions' prototype declaration in corresponding
header file and removes issues suce as redefinition of some macros.
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 20:29:18 +0000 (13:29 -0700)]
[IA64] Clean up warnings related to VTi code. (C files)
This patch removes most of the warnings such as incompatible assignment,
unused variables, return value type of some functions and so on.
Signed-off-by: Zhang Xiantao <xiantao.zhang @intel.com>
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 18:08:51 +0000 (11:08 -0700)]
[IA64] redefine raw_smp_processor_id()
There are two definitions of raw_smp_processor_id()
One is in file xen/include/asm-ia64/linux/asm/smp.h
#define raw_smp_processor_id() (current_thread_info()->cpu)
The other is in file /xen/include/asm-ia64/config.h
#define raw_smp_processor_id() current->processor
In fact, the first one takes effect, that's not correct.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 17:50:27 +0000 (10:50 -0700)]
[IA64] another one to remove unused linux files within xen/ia64
This patch is to remove more unused linux files inside xen and also some
duplicated ones, like slab.h and cpumask.h. This should help reduce
duplicated definitions conflicting with xen's.
Signed-off-by Kevin Tian <kevin.tian@intel.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 17:32:27 +0000 (10:32 -0700)]
[IA64] Remove unused Linux stuff
Signed-off-by Kevin Tian <kevin.tian@intel.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 16:41:27 +0000 (09:41 -0700)]
[IA64] fix ia64 cset 8906
Looks like we accidentially added a compliment op here, adding
one more to nullify. Fixed dom0 not booting.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:44:34 +0000 (08:44 -0700)]
[IA64] bug fix reserve_memory()
reserved_region[].start is of virtual address in identity
mapping. not physical address.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:41:21 +0000 (08:41 -0700)]
[IA64] import linux/include/asm-ia64/meminit.h from 2.6.16-rc3.
this is needed for a later patch to modify meminit.h
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:37:46 +0000 (08:37 -0700)]
[IA64] minor bug fix in xensetup.S
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:34:11 +0000 (08:34 -0700)]
[IA64] tlb miss fix
make dtlb miss handler to handle xen/ia64 identity mapping area.
xen/ia64 enables vhpt walker for all regions unlink Linux.
So dtlb misses on identity mapping area are catched by
dtlb miss handler, not alt dltb miss handler.
- dtlb miss on identity mapping area must be handled
- alt dtlb miss must be handled
- itlb miss on the identity mapping area must not occur
panic via page_fault().
- alt itlb miss by a guest must be handled
it occurs during dom0 boot.
- alt itlb miss by xen must not occur
panic by FORCE_CRASH
vmx_ivt.S already has such tweaks by checking psr.vm bit.
TODO: optimization
dtlb miss handlers are performance critical so that
it should be heavily optimized like alt_dtlb_miss.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:29:52 +0000 (08:29 -0700)]
[IA64] acpi printf fix
fix printf format miss. %0xlx -> 0x%lx
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:28:36 +0000 (08:28 -0700)]
[IA64] cleanup itir_ps(), itir_mask()
code clean up.
itir_ps(), itir_mask()
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:24:58 +0000 (08:24 -0700)]
[IA64] hypercall cleanup
hypercall clean up.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:23:33 +0000 (08:23 -0700)]
[IA64] assign_new_domain0_page
map_new_domain0_page() -> assign_new_domain0_page() for consistency
deleted map_domain_page0() declaration
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Thu, 23 Feb 2006 22:40:18 +0000 (15:40 -0700)]
[IA64] Provides right frequency ratio and base for VTi domain
This patch handles the pal_freq_ratio and pal_freq_base request breaked
to Xen by GFW for VTi domain. and it fixed the wrong frequency ratio
and base of VTi domian. So,i with this patch, VTi domian can get the
right time ,itc,cpu frequency, freqency base and other kernel params rely
on right frequency_ratio.
Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
Signed-off-by: Yu Ke <ke.yu@intel.com>
awilliam@xenbuild.aw [Sun, 19 Feb 2006 04:25:31 +0000 (21:25 -0700)]
[IA64] gcc-4.0 build fix
do_lock_page() and do_set_shared_page() are declared static in
vmx_hypercall.c. Removed so we can build with gcc-4.0. From
Stephane Eranian.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Sat, 18 Feb 2006 21:54:15 +0000 (14:54 -0700)]
[IA64] add CONFIG_XEN to sal.c sparse file
Adjust for easier maintenance
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Sat, 18 Feb 2006 20:17:24 +0000 (13:17 -0700)]
merge
kaf24@firebug.cl.cam.ac.uk [Sat, 18 Feb 2006 10:56:51 +0000 (11:56 +0100)]
Missing file from previous changeset.
kaf24@firebug.cl.cam.ac.uk [Sat, 18 Feb 2006 10:56:13 +0000 (11:56 +0100)]
Enable x86_32 PAE unmodified guests on 64-bit Xen when the hvm feature
is present. We tested only Linux at this point, and we'll improve the
functionality as we test other guests.
The SVM needs the equivalent changes to the vmc.c to get this
functionality working, but this patch does not break the build.
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 18 Feb 2006 10:41:42 +0000 (11:41 +0100)]
Include an extra header file in xenbus.h. Fixes ia64 build.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 18 Feb 2006 00:05:05 +0000 (01:05 +0100)]
Fix debug build.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 18 Feb 2006 00:02:19 +0000 (01:02 +0100)]
Svm patch to remove unneeded update_pagetables().
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 18 Feb 2006 00:01:52 +0000 (01:01 +0100)]
Svm patch to fix asid logic on multicore.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 18 Feb 2006 00:01:31 +0000 (01:01 +0100)]
Svm patch to cleanup the injection logic and consolidate into one function.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
awilliam@xenbuild.aw [Fri, 17 Feb 2006 22:02:40 +0000 (15:02 -0700)]
[IA64] fixed switch to idle domain bug
Previously when switching to idle domain, cr.pta is set to dom0's VHPT,
then when switching from VTIdomain to idle domain, cr.pta is set to
dom0's VHPT, and in idle domain, VHPT will be not remapped by TR, so
there may be unexpected vhpt fault in idle domain, which may cause
domain crash. Above only happens in host smp platform not host up
platform. This patch is intended to fix this bug.
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
emellor@leeni.uk.xensource.com [Fri, 17 Feb 2006 22:00:05 +0000 (23:00 +0100)]
Attached patch updates the xm man page for the listing of
block/network/vtpm devices.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
awilliam@xenbuild.aw [Fri, 17 Feb 2006 21:57:19 +0000 (14:57 -0700)]
[IA64] different type of argument in vcpu_set_gr()
Fix Reserved Register/Field fault in sal_emulate().
This bug is occurred by a wrong type argument.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
awilliam@xenbuild.aw [Fri, 17 Feb 2006 21:49:58 +0000 (14:49 -0700)]
[IA64] wrong type cast in ia64_hypercall
This is wrong type cast.
This patch fix warnning of incompatible pointer type.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
awilliam@xenbuild.aw [Fri, 17 Feb 2006 21:42:02 +0000 (14:42 -0700)]
[IA64] declaration of metaphysical_rr
I'm making a patch for domain destruction.
While I tested my patch by repeatedly
creating/destructing domains,
a reserved register/field fault occurred in load_region_regs().
The cause of this fault is rr0 value overflow(0xFFFFFFFF********)
because metaphysical_rr0 in the arch_domain struct is
declared as integer (should be unsigned long).
The attached patch fixes the problem.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
awilliam@xenbuild.aw [Fri, 17 Feb 2006 21:34:17 +0000 (14:34 -0700)]
[IA64] Fixed arch_domain_create
This patch fixed the process when xenheap shortage occurred
in arch_domain_create().
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Feb 2006 20:26:49 +0000 (21:26 +0100)]
Remove obsolete ccache patch from xm-test buildroot.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Feb 2006 20:25:53 +0000 (21:25 +0100)]
Fix buildroot problems and bring the buildroot image up
to
15feb06, update to Makefile.am. The original gcc-mirror patch is
removed and the buildroot configuration updated.
Signed-off-by: Woody Marvel <marvel@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Feb 2006 19:41:30 +0000 (20:41 +0100)]
Disable C1 clock ramping on AMD 8th gen CPUs.
This reverts a previous changeset that removed this code.
It is currently required for good TSC behaviour in SVM
(fully virtualised) guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 17 Feb 2006 18:35:38 +0000 (19:35 +0100)]
This patch displays the network-list/block-list/vtpm-list using the 'xm'
command. It supports the '--long' option.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Feb 2006 17:22:23 +0000 (18:22 +0100)]
Fix 64b build.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Feb 2006 15:29:24 +0000 (16:29 +0100)]
Fix HVM MSR save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
cl349@firebug.cl.cam.ac.uk [Fri, 17 Feb 2006 11:49:11 +0000 (11:49 +0000)]
Fix Read/Write CR3 emulation.
- on write, new_guest_cr3() takes an mfn not an ma
- for shadow_translate guests, apply mfn_to_gmfn/gmfn_to_mfn
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Feb 2006 11:28:35 +0000 (12:28 +0100)]
Fix a VMX FPU bug introduced in changeset 8834.
From: Edwin Zhai
Signed-off-by: Keir Fraser <keir@xensource.com>
cl349@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 23:24:47 +0000 (23:24 +0000)]
Update the ia64 linux-2.6-xen-sparse tree to 2.6.16-rc3.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 23:07:11 +0000 (00:07 +0100)]
Update defconfigs for PCI front/back driver config options.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 22:47:58 +0000 (23:47 +0100)]
Update documentation to describe new PCI front/back drivers.
Update the documentation to include the syntax of "hiding" a PCI
device from domain 0 and for specifying the assignment of a PCI device
to a driver domain. It also includes a brief section exploring some of
the security concerns that driver domains address and mentioning some
of those that remain.
Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 22:46:51 +0000 (23:46 +0100)]
Tools changes for PCI front/back drivers.
Replace the old pciif DevController class with a new one that
configures the PCI backend. A util class detects the resource usage of
the specified PCI devices and pciif interacts with Xen to permit a
driver domain to directly access those physical I/O resources.
Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 22:44:41 +0000 (23:44 +0100)]
PCI backend and frontend drivers for i386 and x86_64.
Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 22:37:40 +0000 (23:37 +0100)]
Provide a simpler, higher-level interface for mapping in pages from another domain.
I also added a one-liner that causes xenbus_dev_(error|fatal) to output
to the kernel log buffer (and thus syslog) which was invaluable to me
while debugging (by default, error messages only appear in xenstore).
Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 22:00:00 +0000 (23:00 +0100)]
Fix bugs related to the virtual TPM. Also make the vTPM
manager listen on /dev/vtpm.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 21:57:29 +0000 (22:57 +0100)]
Fix a dead download url for ccache when building the xm-test ramdisk.
From: Adam Wendt <adam@ipcoast.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 21:39:55 +0000 (22:39 +0100)]
VTPM Tools: Fix threading bug in vtpm_manager while using NPTL. Now
supports Linux Threads and NPTL threads. Also clean up vtpm Makefile.
Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 21:33:46 +0000 (22:33 +0100)]
Fix Xen builds with perfc=y and perfc_arrays=y.
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Ben Thomas <ben@virtualiron.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 21:25:54 +0000 (22:25 +0100)]
Sync Xen's mpspec.h with Linux 2.6.16-rc2 codebase.
Fixes building with gcc 4.1-pre, pointed out by Chris Wright.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 18:04:33 +0000 (19:04 +0100)]
Re-enable VGA acceleration under the new phys_to_machine_mapping.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 17:52:06 +0000 (18:52 +0100)]
New memory_op subcall XENMEM_translate_gpfn_list.
Allows translation from GPFNs to MFNs for an auto-translated
guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 16:37:21 +0000 (17:37 +0100)]
Upgrade mpparse.c to linux-2.6.16-rc2 codebase.
Signed-off-by: Keir Fraser <keir@xensource.com>
vhanquez@kneesa.uk.xensource.com [Thu, 16 Feb 2006 16:19:38 +0000 (16:19 +0000)]
When xc_linux_build fails without a meaninful errno, force errno to EINVAL
avoid message "Error creating domain: (0, 'Error')" in the case
domU version is too old or too new.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 15:46:21 +0000 (16:46 +0100)]
Fix problems with direct-mapping handling especially when
VMX assist is used for real mode and protected mode.
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 15:35:09 +0000 (16:35 +0100)]
Add back code to zero the 'saved eflags' value on vmx vmexit.
vmx mode is unstable without this -- the root cause needs to
be investigated.
From: Jun Nakajima
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 15:31:52 +0000 (16:31 +0100)]
Clean up swiotlb_init() decls.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 15:31:22 +0000 (16:31 +0100)]
Upgrade smpboot.c to linux-2.6.16-rc2 codebase.
Signed-off-by: Keir Fraser <keir@xensource.com>
vhanquez@kneesa.uk.xensource.com [Thu, 16 Feb 2006 14:26:02 +0000 (14:26 +0000)]
Fix Makefile problem when "gcc -v" includes a '/'
and convert | to / to avoid the same problem with '|'.
Original patch from Jos Vos, modified to prevent a '|' problem.
From: Jos Vos <jos@xos.nl>
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
cl349@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 14:10:01 +0000 (14:10 +0000)]
Fix upgrade omissions.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 11:30:44 +0000 (11:30 +0000)]
Check for the entire kernel range for temporarily cleared PMD entries.
From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Thu, 16 Feb 2006 11:25:36 +0000 (11:25 +0000)]
Fix prototype mismatch.
Should fix e1000/tg3 hang and cciss problems.
From: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
awilliam@xenbuild.aw [Thu, 16 Feb 2006 04:33:52 +0000 (21:33 -0700)]
[IA64] Cleanup README.origin files
Add missing/moved files, fixup paths, fix inconsistent formatting
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
cl349@firebug.cl.cam.ac.uk [Wed, 15 Feb 2006 22:06:12 +0000 (22:06 +0000)]
Update to Linux 2.6.16-rc3.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
--HG--
rename : patches/linux-2.6.16-rc2/i386-mach-io-check-nmi.patch => patches/linux-2.6.16-rc3/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.16-rc2/net-csum.patch => patches/linux-2.6.16-rc3/net-csum.patch
rename : patches/linux-2.6.16-rc2/pmd-shared.patch => patches/linux-2.6.16-rc3/pmd-shared.patch
rename : patches/linux-2.6.16-rc2/smp-alts.patch => patches/linux-2.6.16-rc3/smp-alts.patch
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Feb 2006 14:20:32 +0000 (15:20 +0100)]
Clean up grant-table code and replace uses of get_user
and put_user in common code. This is an attempt to narrow
the uaccess API before it gets replaced.
Signed-off-by: Keir Fraser <keir@xensource.com>
cl349@firebug.cl.cam.ac.uk [Wed, 15 Feb 2006 14:13:10 +0000 (14:13 +0000)]
Cleanup x86/x86_64 apic.c files.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Feb 2006 11:21:12 +0000 (12:21 +0100)]
Fix x86/64 build for gcc-4.1-pre.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Feb 2006 11:20:42 +0000 (12:20 +0100)]
Fix non-x86 build.
Signed-off-by: Keir Fraser <keir@xensource.com>
cl349@firebug.cl.cam.ac.uk [Wed, 15 Feb 2006 09:44:11 +0000 (09:44 +0000)]
Set feature flags for shadow translate mode guests.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 15 Feb 2006 09:43:14 +0000 (09:43 +0000)]
Fix building the p2m table for shadow translate mode guests.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Feb 2006 23:37:15 +0000 (00:37 +0100)]
Fix to previous changeset: CLTS must be unconditional in
setup_fpu(), as the flag can be set in CR0 even if the VCPU
has already dirtied the FPU (this happens if a paravirtualised
guest has set CR0.TS).
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Feb 2006 23:15:11 +0000 (00:15 +0100)]
More fixes to HVM FPU management. Mostly for SVM, but also
fix VMX mov_to_cr0: must setup_fpu() if the new cr0 value
has TS clear, regardless of previous cr0.TS value.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Feb 2006 22:30:59 +0000 (23:30 +0100)]
Clean up save_init_fpu().
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Feb 2006 21:36:22 +0000 (22:36 +0100)]
Fix gcc4 build.
Signed-off-by: Steve Dobbelstein <steved@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Feb 2006 19:17:26 +0000 (20:17 +0100)]
Clarify lazy FPU management in VMX domains.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Feb 2006 18:43:45 +0000 (19:43 +0100)]
Fix segment-register dumping in show_registers().
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Feb 2006 17:25:10 +0000 (18:25 +0100)]
More upgrades of Xen code to linux-2.6.16-rc2.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Feb 2006 15:23:43 +0000 (16:23 +0100)]
Upgrade arch/x86/cpu/* files to their equivalents in
linux-2.6.16-rc2/arch/i386/kernel/cpu/*.
Also include kernel taint tracking and include that
information, and Xen release info, in our crash dumps.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Feb 2006 16:41:23 +0000 (17:41 +0100)]
Return real error code from Xen /dev/mem, not EAGAIN.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Feb 2006 15:47:04 +0000 (16:47 +0100)]
Update defconfigs.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Feb 2006 14:58:50 +0000 (15:58 +0100)]
Fix HVM event handling some more.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Feb 2006 13:54:27 +0000 (14:54 +0100)]
Update x86_32 defconfigs for ISA_DMA_API config change.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Feb 2006 11:45:40 +0000 (12:45 +0100)]
Configure ISA_DMA drivers on xen/i386. Otherwise drivers
that also work with PCI devices won't get compiled.
(For example, BusLogic SCSI).
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Feb 2006 11:16:16 +0000 (12:16 +0100)]
Absolutely must not return to HVM guest context until
synchronous I/O emulation is completed.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Feb 2006 09:23:26 +0000 (10:23 +0100)]
Fix error exit path in __gnttab_map_grant_ref() to
put_domain() and hence avoid zombie domains.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Feb 2006 09:19:14 +0000 (10:19 +0100)]
Clean up vmxassist/setup.c. It is no longer necessary to
switch to an alternate page table before entering the
real-mode emulator.
Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Leendert van Doorn <leendert@watson.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 11 Feb 2006 12:06:49 +0000 (13:06 +0100)]
Rework hvm_wait_io() -- now tries to be a polite user of
event channels by re-setting the selector and master
pending flags when it exits. Should make for better
behaviour when there are others using the event channels.
This needs some testing to be sure it doesn't break
anything or trigger latent bugs.
Signed-off-by: Keir Fraser <keir@xensource.com>
awilliam@xenbuild.aw [Fri, 10 Feb 2006 23:16:33 +0000 (16:16 -0700)]
[IA64] cleanup extraneous function name change from upstream
irq_exit() was briefly renamed to xen_irq_exit(), but the change
is no longer necessary. Reverting to original name and parameters.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
smh22@firebug.cl.cam.ac.uk [Fri, 10 Feb 2006 16:57:13 +0000 (17:57 +0100)]
Reset sp on vcpu_prepare; this avoids 'leaking' stack after repeated
save/restore/migrate iterations.
Should fix various crashes observed with save/restore/migrate of multi
VCPU guests.
Signed-off-by: Steven Hand <steven@xensource.com>
mjw@wray-m-3.hpl.hp.com [Fri, 10 Feb 2006 16:14:56 +0000 (17:14 +0100)]
Fix exporting vnet config to xenstore.
Signed-off-by: Mike Wray <mike.wray@hp.com>
awilliam@xenbuild.aw [Fri, 10 Feb 2006 15:37:14 +0000 (08:37 -0700)]
merge
kaf24@firebug.cl.cam.ac.uk [Fri, 10 Feb 2006 11:35:19 +0000 (12:35 +0100)]
Avoid misleading message about 'not using swiotlb' on x86/64
domain0. Provide a temporary glue between our swiotlb
implementation and x86/64's dma_ops dynamic dma-mapping
infrastructure.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 10 Feb 2006 02:23:36 +0000 (03:23 +0100)]
Cope with -1 eventchn_fd -- this occurs when using --no-domain-init (a
command line debugging option).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 10 Feb 2006 01:09:19 +0000 (02:09 +0100)]
Parse --port argument to migration.
Patch by Andres Lagar Cavilla <andreslc@cs.toronto.edu>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
adam@ipcoast.com [Fri, 10 Feb 2006 01:05:26 +0000 (02:05 +0100)]
Fix xm-test network tests to work with hvm support enabled.
emellor@leeni.uk.xensource.com [Fri, 10 Feb 2006 01:04:24 +0000 (02:04 +0100)]
The attached patch adds 'xm vtpm-list <DomId>' functionality.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
emellor@leeni.uk.xensource.com [Fri, 10 Feb 2006 01:03:24 +0000 (02:03 +0100)]
Rather than require config changes if you aren't using eth0, use the
default network device available no matter the name. It can still
be configured if you want a specific network device.
Patch by Bill Nottingham <notting@redhat.com>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 9 Feb 2006 23:16:53 +0000 (00:16 +0100)]
Check the hypercall number in the privcmd hypercall ioctl.
We check it is a member of a small set of permitted hypercalls.
Fix libxenstat to not use multicalls (not permitted, and not
need for efficiency in libxenstat).
Based on an original patch by Chris Wright.
Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
kaf24@firebug.cl.cam.ac.uk [Thu, 9 Feb 2006 23:00:17 +0000 (00:00 +0100)]
Remove Xen-specific param.h: has only cosmetic change from mainline.
-#define CLOCKS_PER_SEC (USER_HZ) /* like times() */
+# define CLOCKS_PER_SEC (USER_HZ) /* like times() */
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
kaf24@firebug.cl.cam.ac.uk [Thu, 9 Feb 2006 22:15:21 +0000 (23:15 +0100)]
pci-nommu-xen.c is identical to its mainline counterpart so remove it.
Signed-off-by: Chris Wright <chrisw@sous-sol.org>